package com.xbao.dao;

import com.xbao.model.Rule;
import com.xbao.model.req.RuleReq;
import com.xbao.model.vo.RuleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by qingshengzheng on 18/8/25.
 */
@Mapper
public interface RuleMapper {

    public void addRule(Rule rule);

    @Select("select * from rule where id=#{ruleid}")
    public RuleVo getRule(Long ruleid);

    @Select("select * from rule ")
    public List<RuleVo> queryRule(RuleReq req);




}
